//package com.qifenqian.turbot.deprecated.presenter
//
//import android.content.Context
//import com.qifenqian.turbot.base.BasePresenter
//import com.qifenqian.turbot.deprecated.contract.ForgetPasswordContract
//import com.qifenqian.turbot.deprecated.model.ForgetPasswordModel
//import com.qifenqian.turbot.net.ModelCallback
//
///**
// * @author H
// * @createTime 2018/12/18 17:24
// * @description
// * @see
// * @since
// */
//@Deprecated("AccountPresenter")
//class ForgetPasswordPresenter(context: Context, view: ForgetPasswordContract.View) : BasePresenter<ForgetPasswordContract.View, ForgetPasswordModel>(context, view), ForgetPasswordContract.Presenter {
//
//    override fun sendSmsCode(type: Int) {
//        mModel.sendSmsCode(type, object : ModelCallback<Nothing> {
//            override fun onSuccess(msg: String?, t: Nothing?) {
//                mView!!.sendSmsCodeSuccess()
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showToast(code, msg)
//            }
//
//        })
//    }
//
//    override fun resetPassword(userCode: String, password: String, smsCode: String) {
//        mModel.resetPassword(userCode, password, smsCode, object : ModelCallback<Any> {
//            override fun onSuccess(msg: String?, t: Any?) {
//                mView!!.resetPasswordSuccess()
//            }
//
//            override fun onFailure(code: Int, msg: String?) {
////                mView!!.showToast(code, msg)
//            }
//        })
//    }
//
//    override fun createModel(): ForgetPasswordModel {
//        return ForgetPasswordModel(mContext)
//    }
//}
